import office
wd = office.open_file("o.docx", template="template3.docx")
wd.fill("list.xlsx").save()
